import java.sql.SQLOutput;

public class Test {
    public static void main(String[] args) {
        //创建对象
        Frog f = new Frog("小绿", 1);
        System.out.println(f.getName() + "," + f.getAge());
        f.drink();
        f.eat();
        System.out.println("-------------");
        Sheep s = new Sheep("小羊", 2);
        System.out.println(s.getName() + "," + s.getAge());
        s.drink();
        s.eat();
        System.out.println("-------------");
        Dog d = new Dog("小狗", 3);
        System.out.println(d.getName() + "," + d.getAge());
        d.eat();
        d.drink();
    }
}
